package com.tianbao54.kotlin_01

fun main(args: Array<String>) {

    println("hello kotlin")

    var list: List<String> = listOf("zhangsan", "lisi", "wangwu", "maliu")
    println("-----------------")
    for (str in list) {
        println("str = ${str}")
    }
    println("-----------------")
    list.forEach { println(it) }
    println("-----------------")
    list.forEach (System.out::println)
}